﻿using SqlSugar;
using WeDonekRpc.SqlSugar.VirtualQuery;

namespace WeDonekRpc.SqlSugar
{
    public interface IDBTools
    {
        bool DropView ( string name );
        SqlSugarProvider Provider { get; }

        void EditView ( string name, QueryStruct body );
        List<DbTableInfo> GetAllTable ( bool isCache = true );
        List<DbTableInfo> GetAllView ( bool isCache = true );
        bool IsTable ( string tableName, bool isCache = true );
        bool IsView ( string viewName, bool isCache = true );
        bool TruncateTable ( string tableName );
    }
}